// 设置颜色变量
@bg-color-b7:#b7d4a8;
@bg-color-black:#000000;

// 清除默认样式
*{
    margin: 0;
    padding:0;
    box-sizing:border-box;
}
// 设置字体
body{
    font:bold 20px "Courier"
}
// 主要框架样式
.main{
    width:360px;
    height:420px;
    background-color: @bg-color-b7;
    border-radius: 10px;
    border: 10px solid @bg-color-black;
    margin:auto;
    .game-box{
        width: 304px;
        height: 304px;
        border:2px solid @bg-color-black;
        margin:10px auto 30px;
        position: relative;
        #snake{
            &>div{
               width: 10px;
               height:10px;
               background-color: @bg-color-black;
               border:1px solid @bg-color-b7;
               position: absolute;
            }
        }
        #food{
            width: 10px;
            height: 10px;
            background-color: @bg-color-black;
            border-radius: 5px;
            position: absolute;
            left: 40px;
            top:40px;
        }
    }
    .game-info{
        display: flex;
        justify-content: space-around;
        #reset{
            background-color:  @bg-color-b7;
        }
    }
}